class Solution(object):
    def findMaxConsecutiveOnes(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        sums =0
        count =0
        for i in nums:
            if i == 1:
                count+=1

            elif i==0:
                sums = max(count, sums)
                count=0
